﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WarriorRush.GameDynamics.SpecialAbilities
{
    public class BasicDrain : SpecialAbility
    {
        public BasicDrain() : base()
        {

        }

        public override bool Execute(CharacterClass abilityTarget, Arena arena, List<CharacterClass> additonalTargets)
        {
            abilityTarget.TakeEffects(null, Effect);
            return true;
        }

        public override SpecialAbility GetInstance(int power)
        {
            return new BasicDrain() 
            { 
                Power = power, 
                ReplacesAttack = this.ReplacesAttack, 
                ShortName = ShortName, 
                Description = Description, 
                Effect = Effect != null ?Effect.GetInstance(Power): null,
                AbilityType = AbilityType, 
                EfType =  EfType
            };
        }
        

    }
}
